package org.jmh.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class GiftDocQuery {


    private String goodsName;

    private BigDecimal maxPrice;
    private BigDecimal minPrice;

    private String typeName;

    private String brandName;

    private Integer currentPage;
    private Integer pageSize;
    private String keyword;
    private String orderField;
    private String orderType;

    public int getStart(){
        return  (currentPage-1)*pageSize;
    }
}
